package _05卖票2;

public class SellerRunnable implements Runnable {

	int count = 100;

	@Override
	public void run() {
		while (count > 0) {
			count--;
			System.out.println(Thread.currentThread().getName() + "售出一张票，剩下" + count + "票");
			try {
				Thread.sleep(100);

			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println(Thread.currentThread().getName() + "售票结束");

	}

}
